3.250 \(\int \csc ^2(e+f x) \sqrt{a+b \sec (e+f x)} \, dx\)

Optimal. Leaf size=121 \[ \frac{\sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right ),\frac{a+b}{a-b}\right )}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f} \]

[Out]

(Sqrt[a + b]*Cot[e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1
- Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/f - (Cot[e + f*x]*Sqrt[a + b*Sec[e + f*x]])
/f

________________________________________________________________________________________

Rubi [A]  time = 0.114954, antiderivative size = 121, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {3875, 3832} \[ \frac{\sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f} \]

Antiderivative was successfully verified.

[In]

Int[Csc[e + f*x]^2*Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(Sqrt[a + b]*Cot[e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1
- Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/f - (Cot[e + f*x]*Sqrt[a + b*Sec[e + f*x]])
/f

Rule 3875

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)/cos[(e_.) + (f_.)*(x_)]^2, x_Symbol] :> Simp[(Tan[e + f*x]*(a
+ b*Csc[e + f*x])^m)/f, x] + Dist[b*m, Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m - 1), x], x] /; FreeQ[{a, b, e
, f, m}, x]

Rule 3832

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(-2*Rt[a + b, 2]*Sqr
t[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Csc[e + f*x]))/(a - b))]*EllipticF[ArcSin[Sqrt[a + b*Csc[e +
f*x]]/Rt[a + b, 2]], (a + b)/(a - b)])/(b*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin{align*} \int \csc ^2(e+f x) \sqrt{a+b \sec (e+f x)} \, dx &=-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f}+\frac{1}{2} b \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx\\ &=\frac{\sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f}\\ \end{align*}

Mathematica [A]  time = 1.1934, size = 120, normalized size = 0.99 \[ \frac{b \sqrt{\frac{a+b \sec (e+f x)}{(a+b) (\sec (e+f x)+1)}} \text{EllipticF}\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right ),\frac{a-b}{a+b}\right )-\csc (e+f x) \sqrt{\frac{1}{\sec (e+f x)+1}} (a \cos (e+f x)+b)}{f \sqrt{\frac{1}{\sec (e+f x)+1}} \sqrt{a+b \sec (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[e + f*x]^2*Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(-((b + a*Cos[e + f*x])*Csc[e + f*x]*Sqrt[(1 + Sec[e + f*x])^(-1)]) + b*EllipticF[ArcSin[Tan[(e + f*x)/2]], (a
 - b)/(a + b)]*Sqrt[(a + b*Sec[e + f*x])/((a + b)*(1 + Sec[e + f*x]))])/(f*Sqrt[(1 + Sec[e + f*x])^(-1)]*Sqrt[
a + b*Sec[e + f*x]])

________________________________________________________________________________________

Maple [B]  time = 0.278, size = 264, normalized size = 2.2 \begin{align*} -{\frac{ \left ( -1+\cos \left ( fx+e \right ) \right ) ^{2} \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}{f \left ( a\cos \left ( fx+e \right ) +b \right ) \left ( \sin \left ( fx+e \right ) \right ) ^{5}} \left ( \sqrt{{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) b\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) \sqrt{{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}\sin \left ( fx+e \right ) b+ \left ( \cos \left ( fx+e \right ) \right ) ^{2}a+b\cos \left ( fx+e \right ) \right ) \sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{\cos \left ( fx+e \right ) }}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(f*x+e)^2*(a+b*sec(f*x+e))^(1/2),x)

[Out]

-1/f*(-1+cos(f*x+e))^2*((cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*(1/(a+b)*(a*cos(f*x+e)+b)/(1+cos(f*x+e)))^(1/2)*Elli
pticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*b*sin(f*x+e)*cos(f*x+e)+EllipticF((-1+cos(f*x+e))/sin(f*
x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*(1/(a+b)*(a*cos(f*x+e)+b)/(1+cos(f*x+e)))^(1/2)*si
n(f*x+e)*b+cos(f*x+e)^2*a+b*cos(f*x+e))*(1+cos(f*x+e))^2*(1/cos(f*x+e)*(a*cos(f*x+e)+b))^(1/2)/(a*cos(f*x+e)+b
)/sin(f*x+e)^5

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*sec(f*x + e) + a)*csc(f*x + e)^2, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(b*sec(f*x + e) + a)*csc(f*x + e)^2, x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a + b \sec{\left (e + f x \right )}} \csc ^{2}{\left (e + f x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)**2*(a+b*sec(f*x+e))**(1/2),x)

[Out]

Integral(sqrt(a + b*sec(e + f*x))*csc(e + f*x)**2, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(b*sec(f*x + e) + a)*csc(f*x + e)^2, x)